<?php

namespace Wanecho\FlarumApp;

use Flarum\Extend;
use Flarum\Foundation\AbstractServiceProvider;
use Illuminate\Contracts\Config\Repository as ConfigRepository;

class AppServiceProvider extends AbstractServiceProvider {
    public function register () {
        //date_default_timezone_set('Asia/Shanghai');
        $this->container->make(ConfigRepository::class)->set('session.lifetime', 60*24*7); // In minutes. Default is 120
    }
}